﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QASampling.UI
{
    public partial class InputMessageBox : Form
    {
        private string input;
        public string Input
        {
            get { return input; }
            set { input = value; }
        }        

        public InputMessageBox()
        {
            InitializeComponent();
        }

        public DialogResult Show(string message)
        {
            lblMessage.Text = message;
            DialogResult ret = this.ShowDialog(this.Owner);
            input = txtInput.Text;
            return ret;
        }

        private void InputMessageBox_Load(object sender, EventArgs e)
        {
            txtInput.Focus();
        }
    }
}
